package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLLock;

public class HLClassLock extends HLLibClass {
    public HLClassLock(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLLock();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLLock) self).Lock();
            break;
        }
        case 1: {
            ((HLLock) self).Unlock();
            break;
        }
        }
    }
}
